<?php

namespace plugin\sqmadmin\app\model\system;

use plugin\sqmadmin\basic\BaseModel;

/**
 * 参数配置模型
 */
class SysConfig extends BaseModel
{
    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    protected $table = 'sys_config';

    public function getConfigSelectDataAttr($value)
    {
        return json_decode($value ?? '', true);
    }

}